:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

/* toc style */
.toc {
    position: fixed;
    top: 50%;
    right: 5%;
    width: 20%;
    transform: translateY(-50%);
    background-color: #f6f6f6;
    border-radius: 5px;
    padding-bottom: 1rem;
}


.toc nav {
    padding-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all ease-out .3s;
}
.navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: .5rem 1rem;
}

.toc ul {
    padding-left: .5rem;
    width: 100%;
}
.tree, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    display: list-item;
    text-align: -webkit-match-parent;
}
.tree, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc .nav-link {
    padding: 2;
    padding-left: .5rem;
    transition: all ease-out .3s;
    color: #1c2d41;
}
.nav-pills .nav-link {
    border-radius: .25rem;
}
.nav-link {
    display: block;
    padding: .5rem 1rem;
}
a {
    color: #248aaa;
}
a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.toc .page-header {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.toc-nav ul {
    overflow:hidden;
    white-space:nowrap;
    line-height: 1rem;
}

/* ignore h1 header */
.toc-nav ul ul ul {
    margin-left: 2rem;
}

.toc-holder {
    position: -webkit-sticky;
    position: sticky;
    top: 4.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #248aaa;
    margin-right: .5rem;
    transition: all ease-out .3s;
}


.toc-nav li.active .nav-link {
    background-color: #248aaa;
    color: #ffffff;
    border-left: solid 3px #849873;
}

.toc .nav-link:hover, .toc .nav-link:focus, .toc .nav-link.active {
    padding-left: 1rem;
    padding-right: .5rem;
    background-color: #248aaa;
    color: #ffffff;
    transition: all ease-out .3s;
}

/* Media Queries */
@media (max-width: 1080px) {
    main {
        max-width: 100%;
    }
    .toc {
        display: none;
    }
}